import request from '@/utils/request'

/**
 * @description: 获取销售出库
 * @param {*} params
 */
export function getFirstrecordReport(params) {
  return request({
    url: '/firstrecord/report/list',
    params
  })
}

/**
 * @description: 获取报告ID
 * @param {*} params
 */
export function getFirstrecordReportID(params) {
  return request({
    url: '/firstrecord/report/reportid',
    params
  })
}

/**
 * @description: 新增巡检项目
 * @param {*} params
 */
export function addFirstrecordReport(data) {
  return request({
    url: '/firstrecord/report/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取Ipqc巡检检验报告详情
 * @param {*} params
 */

export function getFirstrecordReportDetail(params) {
  return request({
    url: '/firstrecord/report/detail',
    params
  })
}

/**
 * @description: 更新巡检项目
 * @param {*} params
 */
export function updateFirstrecordReport(data) {
  return request({
    url: '/firstrecord/report/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除巡检项目
 * @param {*} params
 */

export function deleteFirstrecordReport(data) {
  return request({
    url: '/firstrecord/report/delete',
    method: 'post',
    data
  })
}
